<%-- 
    Document   : index
    Created on : 8 avr. 2012, 17:03:33
    Author     : Cranberry
--%>
<%@page language="java" session="true" %>
<%@page import="java.util.List"%>
<%@page import="bmg.Category"%>
<%@page import="bmg.Product"%>
<%@page import="model.ShoppingCart"%>
<%@page import="model.Order"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:include page="inc/header.jsp">
    <jsp:param name="title" value="Categorie niania" />
</jsp:include>

<% ShoppingCart cart = (ShoppingCart) session.getAttribute("cart"); %>
<%= cart.getCustomer().getFirstName().getValue() %>


<div class="ym-col1">
    
    <div class="ym-cbox">
        
        <div class="box info">
            Vous trouverez ici tout ce que vous cherchez de green !
        </div>
        
        
        <form class="ym-form" action="<% request.getContextPath(); %>?action=validate_order" method="POST">
        <section class="ym-grid linearize-level-2">
                <article class="ym-g50 ym-gl">
                    <h3>Adresse de livraison</h3>
                    <table>
                        <tr>
                            <th><label for="lastname">Nom : </label></th>
                            <td><input name="lastname" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="firstname">Prénom : </label></th>
                            <td><input name="firstname" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="mail">Mail : </label></th>
                            <td><input name="mail" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="number">Numéro : </label></th>
                            <td><input name="number" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="street">Rue : </label></th>
                            <td><input name="street" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="zip">CP : </label></th>
                            <td><input name="zip" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="city">Ville : </label></th>
                            <td><input name="city" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="type">Fact. ? :</label></th>
                            <td>
                                <select name="type">
                                    <option value="0">Non</option>
                                    <option value="1">Oui</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </article>
                <article class="ym-g50 ym-gl">
                    <h3>Adresse de facturation</h3>
                    <table>
                        <tr>
                            <th><label for="lastname_fact">Nom : </label></th>
                            <td><input name="lastname_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="firstname_fact">Prénom : </label></th>
                            <td><input name="firstname_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="mail_fact">Mail : </label></th>
                            <td><input name="mail_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="number_fact">Numéro : </label></th>
                            <td><input name="number_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="street_fact">Rue : </label></th>
                            <td><input name="street_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="zip_fact">CP : </label></th>
                            <td><input name="zip_fact" type="text" /></td>
                        </tr>
                        <tr>
                            <th><label for="city_fact">Ville : </label></th>
                            <td><input name="city_fact" type="text" /></td>
                        </tr>
                    </table>
                </article>
            </section>
        <input type="submit" value="Confirmer" class="ym-" />
            </form>
        

    </div>       
        
</div>
        
<jsp:include page="menu.jsp" />      
        
<jsp:include page="inc/footer.jsp" />